public class Global {
    Global(int l, boolean e1, boolean e2, boolean e3, boolean e4, boolean e5) {
        loop = l;
        ending1 = e1;
        ending2 = e2;
        ending3 = e3;
        ending4 = e4;
        ending5 = e5;
    }

    public static int loop;
    public static boolean ending1;
    public static boolean ending2;
    public static boolean ending3;
    public static boolean ending4;
    public static boolean ending5;

    public int getLoop() {
        return loop;
    }

    public void setLoop(int l) {
        loop = l;
    }

    public void setEnding1(boolean e1) {
        ending1 = e1;
    }

    public void setEnding2(boolean e2) {
        ending2 = e2;
    }

    public void setEnding3(boolean e3) {
        ending3 = e3;
    }

    public void setEnding4(boolean e4) {
        ending4 = e4;
    }

    public void setEnding5(boolean e5) {
        ending5 = e5;
    }

    public boolean getEnding1() {
        return ending1;
    }

    public boolean getEnding2() {
        return ending2;
    }

    public boolean getEnding3() {
        return ending3;
    }

    public boolean getEnding4() {
        return ending4;
    }

    public boolean getEnding5() {
        return ending5;
    }
}
